package web.req;

import common.consts.Consts;
import org.hibernate.validator.constraints.NotBlank;
import web.Request;

import javax.validation.constraints.Pattern;

/**
 * Created by liuchang on 2015/6/27.
 */
public class UserProfileRequest extends Request {
    private long id;
    @NotBlank(message = Consts.i18nKey.NAME_IS_REQUIRED)
    private String name;
    @NotBlank(message = Consts.i18nKey.GENDER_IS_REQUIRED)
    private String gender;
    @Pattern(regexp = "1\\d{10}", message = Consts.i18nKey.INVALID_MOBILE_NUMBER)
    private String phone;
    private int age;
    private int height;
    private String birthday;
    private String province;
    private String city;
    private String district;
    private String school;
    private String major;
    private String grade;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }
}
